package com.niiwoo.activity.stage.dto.request.prize;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Description 借新还旧请求参数
 * @Author zq
 * @Date 2018/2/24
 */
@Getter
@Setter
public class ActivityPrizeRefinancingReqDTO implements Serializable {

    @NotNull(message = "用户id不能为空")
    private String userId;

    @NotNull(message = "项目标的不能为空")
    private Long projectId;

    @NotNull(message = "发放金额不能为空且不能小于等于0")
    private BigDecimal amount;

}
